 //证券选择
    var security_btn = document.querySelector(".security");
    var showSecurityDom = document.querySelector('#showSecurity');
    var securityIdDom = document.querySelector('#securityId');
    var security=0;
    security_btn.addEventListener('click', function () {
        var securityId = showSecurityDom.dataset['id'];
        var securityName = showSecurityDom.dataset['value'];
        var securitySelect = new IosSelect(1, 
            [security_data],
            {
                title: '',
                itemHeight: 35,
                oneLevelId: securityId,
                callback: function (selectOneObj) {
                    securityIdDom.value = selectOneObj.id;
                    showSecurityDom.innerHTML = selectOneObj.value;
                    showSecurityDom.dataset['id'] = selectOneObj.id;
                    security=selectOneObj.id;
                    showSecurityDom.dataset['value'] = selectOneObj.value;
                    showSecurityDom.style.color="rgb(51,51,51)"
                    
                }
        });
    });
//外汇选择
    var forex_btn = document.querySelector(".forex");
    var showForexDom = document.querySelector('#showForex');
    var forexIdDom = document.querySelector('#forexId');
    var forex=0;
    forex_btn.addEventListener('click', function () {
        var forexId = showForexDom.dataset['id'];
        var forexName = showForexDom.dataset['value'];
        var forexSelect = new IosSelect(1, 
            [forex_data],
            {
                title: '',
                itemHeight: 35,
                oneLevelId: forexId,
                callback: function (selectOneObj) {
                    forexIdDom.value = selectOneObj.id;
                    showForexDom.innerHTML = selectOneObj.value;
                    showForexDom.dataset['id'] = selectOneObj.id;
                    forex=selectOneObj.id;
                    showForexDom.dataset['value'] = selectOneObj.value;
                	showForexDom.style.color="rgb(51,51,51)"
                }
        });
    });

//期货选择
    var qihuo_btn = document.querySelector(".qihuo");
    var showQihuoDom = document.querySelector('#showQihuo');
    var qihuoIdDom = document.querySelector('#qihuoId');
    var qihuo = 0;
    qihuo_btn.addEventListener('click', function () {
        var qihuoId = showQihuoDom.dataset['id'];
        var qihuoName = showQihuoDom.dataset['value'];
        var qihuoSelect = new IosSelect(1, 
            [qihuo_data],
            {
                title: '',
                itemHeight: 35,
                oneLevelId: qihuoId,
                callback: function (selectOneObj) {
                    qihuoIdDom.value = selectOneObj.id;
                    showQihuoDom.innerHTML = selectOneObj.value;
                    showQihuoDom.dataset['id'] = selectOneObj.id;
                    qihuo=selectOneObj.id;
                    showQihuoDom.dataset['value'] = selectOneObj.value;
                    showQihuoDom.style.color="rgb(51,51,51)"
                }
        });
    });

//期指选择
    var qizhi_btn = document.querySelector(".qizhi");
    var showQizhiDom = document.querySelector('#showQizhi');
    var qizhiIdDom = document.querySelector('#qizhiId');
    var qizhi = 0;
    qizhi_btn.addEventListener('click', function () {
        var qizhiId = showQizhiDom.dataset['id'];
        var qizhiName = showQizhiDom.dataset['value'];

        var qizhiSelect = new IosSelect(1, 
            [qizhi_data],
            {
                title: '',
                itemHeight: 35,
                oneLevelId: qizhiId,
                callback: function (selectOneObj) {
                    qizhiIdDom.value = selectOneObj.id;
                    showQizhiDom.innerHTML = selectOneObj.value;
                    showQizhiDom.dataset['id'] = selectOneObj.id;
                    qizhi=selectOneObj.id;
                    showQizhiDom.dataset['value'] = selectOneObj.value;
                    showQizhiDom.style.color="rgb(51,51,51)"
                }
        });
    });
//期权
    var qiquan_btn = document.querySelector(".qiquan");
    var showQiquanDom = document.querySelector('#showQiquan');
    var qiquanIdDom = document.querySelector('#qiquanId');
    var qiquan = 0;
    qiquan_btn.addEventListener('click', function () {
        var qiquanId = showQiquanDom.dataset['id'];
        var qiquanName = showQiquanDom.dataset['value'];

        var qiquanSelect = new IosSelect(1, 
            [qiquan_data],
            {
                title: '',
                itemHeight: 35,
                oneLevelId: qiquanId,
                callback: function (selectOneObj) {
                    qiquanIdDom.value = selectOneObj.id;
                    showQiquanDom.innerHTML = selectOneObj.value;
                    showQiquanDom.dataset['id'] = selectOneObj.id;
                    qiquan=selectOneObj.id;
                    showQiquanDom.dataset['value'] = selectOneObj.value;
                    showQiquanDom.style.color="rgb(51,51,51)"
                }
        });
    });

//商品选择
    var goods_btn = document.querySelector(".goods");
    var showGoodsDom = document.querySelector('#showGoods');
    var goodsIdDom = document.querySelector('#goodsId');
    var goods =0;
    goods_btn.addEventListener('click', function () {
        var goodsId = showGoodsDom.dataset['id'];
        var goodsName = showGoodsDom.dataset['value'];

        var goodsSelect = new IosSelect(1, 
            [goods_data],
            {
                title: '',
                itemHeight: 35,
                oneLevelId: goodsId,
                callback: function (selectOneObj) {
                    goodsIdDom.value = selectOneObj.id;
                    showGoodsDom.innerHTML = selectOneObj.value;
                    showGoodsDom.dataset['id'] = selectOneObj.id;
                    goods=selectOneObj.id;
                    showGoodsDom.dataset['value'] = selectOneObj.value;
                    showGoodsDom.style.color="rgb(51,51,51)"
                }
        });
    });

//房地产选择
    var property_btn = document.querySelector(".property");
    var showPropertyDom = document.querySelector('#showProperty');
    var propertyIdDom = document.querySelector('#propertyId');
    var property=0;
    property_btn.addEventListener('click', function () {
        var propertyId = showPropertyDom.dataset['id'];
        var propertyName = showPropertyDom.dataset['value'];

        var propertySelect = new IosSelect(1, 
            [property_data],
            {
                title: '',
                itemHeight: 35,
                oneLevelId: propertyId,
                callback: function (selectOneObj) {
                    propertyIdDom.value = selectOneObj.id;
                    showPropertyDom.innerHTML = selectOneObj.value;
                    showPropertyDom.dataset['id'] = selectOneObj.id;
                    property=selectOneObj.id;
                    showPropertyDom.dataset['value'] = selectOneObj.value;
                    showPropertyDom.style.color="rgb(51,51,51)"
                }
        });
    });
